class User:
    def __init__(self, master, uid):
        self.m = master
        self.uid = uid
        if not self.m.users.get('uid', None): self.m.users[uid] = self.init_data(uid)
        self.data = master.users[uid]


    def init_data(self, uid):
        return {
            'uid': uid,
            'age': 0,
            'gin': 100,
            'kee': 100,
            'sen': 100
        }


    async def heartbeat(self):
        if 'age' in self.data: self.data['age'] += 1

